# coding:utf-8
import time
import unittest
import HTMLTestRunner

test_dir = '.'
discover = unittest.defaultTestLoader.discover(test_dir, pattern="*test*.py")
if __name__ == "__main__":
    report_dir = '.'
    now = time.strftime("%Y-%m-%d %H-%M-%S")
    report_name = report_dir + '/' + now + 'result.html'
    runner = HTMLTestRunner.runner.HTMLTestRunner(report_title="Test Report", descriptions="test baidu")
    runner.run(discover)
    # with open(report_name, 'wb') as f:

    # f.close()
